package com.inspur.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.inspur.framework.aspectj.lang.annotation.Excel;
import com.inspur.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 区域信息对象 sys_district
 *
 * @author inspur
 * @date 2020-03-14
 */
public class SysDistrict extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 区域代码 */
    private String code;

    /** 区域代码 */
    private Long id;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String name;

    /** 父级代码 */
    private Long parentId;

    /** 父级代码 */
    @Excel(name = "父级代码")
    private String pcode;

    /** 各父级代码 */
    @Excel(name = "各父级代码")
    private String ancestors;

    /** 行政号 */
    @Excel(name = "行政号")
    private String cityCode;

    /** 级别 */
    @Excel(name = "级别")
    private String level;

    /** 经度 */
    @Excel(name = "经度")
    private String longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private String latitude;

    /** 描述 */
    @Excel(name = "描述")
    private String remark;


    private String sort;

    private String order;

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getCode()
    {
        return code;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPcode(String pcode)
    {
        this.pcode = pcode;
    }

    public String getPcode()
    {
        return pcode;
    }
    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }

    public String getAncestors()
    {
        return ancestors;
    }
    public void setCityCode(String cityCode)
    {
        this.cityCode = cityCode;
    }

    public String getCityCode()
    {
        return cityCode;
    }
    public void setLevel(String level)
    {
        this.level = level;
    }

    public String getLevel()
    {
        return level;
    }
    public void setLongitude(String longitude)
    {
        this.longitude = longitude;
    }

    public String getLongitude()
    {
        return longitude;
    }
    public void setLatitude(String latitude)
    {
        this.latitude = latitude;
    }

    public String getLatitude()
    {
        return latitude;
    }
    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public String getRemark()
    {
        return remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("code", getCode())
            .append("name", getName())
            .append("pcode", getPcode())
            .append("ancestors", getAncestors())
            .append("cityCode", getCityCode())
            .append("level", getLevel())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("remark", getRemark())
            .toString();
    }
}
